package com.wfx.service.impl;

import com.wfx.entity.WxbLoginLog;
import com.wfx.mapper.WxbLoginLogMapper;
import com.wfx.service.IWxbLoginLogService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author zhu
 * @since 2021-01-25
 */
@Service
public class WxbLoginLogServiceImpl extends ServiceImpl<WxbLoginLogMapper, WxbLoginLog> implements IWxbLoginLogService {
    @Autowired
    private WxbLoginLogMapper wxbLoginLogMapper;
    //统计每天的登录人数
    @Override
    public List<Map> statLoginCountPersonPerDay() {
        return wxbLoginLogMapper.statLoginCountPersonPerDay();
    }
    //统计每天的登录人次
    @Override
    public List<Map> statLoginCountPerDay() {
        return wxbLoginLogMapper.statLoginCountPerDay();
    }
}
